package com.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface Users {
	public Map<String, Object> query(@Param("account") String account);

	public void add(@Param("account") String account,
			@Param("password") String password,
			@Param("reg_date") String reg_date);

	public Map<String, Object> queryone(@Param("account") String account,
			@Param("password") String password);

	public Map<String, Object> queryUsers(@Param("id") String id);

	public List<Map<String, Object>> queryday(
			@Param("date_time") String date_time);

	public Map<String, Object> queryin(String userid);

	public Map<String, Object> queryout(String userid);

	public List<Map<String, Object>> queryjin(String userid);

	public List<Map<String, Object>> queryjout(String userid);

	public void addin(@Param("id") String id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_in") String money_in, @Param("kind") String kind,
			@Param("remark") String remark);

	public void addout(@Param("id") String id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_out") String money_out, @Param("kind") String kind,
			@Param("remark") String remark);

	public Map<String, Object> lastId();

	public List<Map> queryall(@Param("user_id") String user_id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_in") String money_in,
			@Param("money_out") String money_out, @Param("kind") String kind,
			@Param("remark") String remark);

	public Map<String, Object> queryyin(String userid);

	public Map<String, Object> queryyout(String userid);

	public List<Map> query_kindping(String userId);

	public List<Map> query_kindsum(String userId);

	public List<Map<String, Object>> queryxq(@Param("user_id") String user_id,
			@Param("id") String id);

	public void del(@Param("user_id") String user_id, @Param("id") String id);

}
